#pragma once
#include "BaseObject.h"
#include "ItemProcessor.h"

class Item : public BaseObject
{
public:
	Item(void);
	~Item(void);

	virtual bool init();
	virtual void updatePosition(float dt);

	CC_SYNTHESIZE_RETAIN(CCString*, _id, Id);
	CC_PROPERTY(ItemProcessor*, _processor, Processor);
	CC_SYNTHESIZE(CCPoint, _velocity, Velocity);
	CC_SYNTHESIZE(CCPoint, _acceleration, Acceleration);
	CC_SYNTHESIZE(float, _timeMagnet, MagnetTime);
	
	CREATE_FUNC(Item);
};

